package top.hhydra.mimall.service;

import top.hhydra.mimall.form.CartAddForm;
import top.hhydra.mimall.form.CartUpdateForm;
import top.hhydra.mimall.vo.CartVo;
import top.hhydra.mimall.vo.ResponseVo;

/**
 * @Description
 * @auther SaiyeEmon
 * @create 2020-02-26 23:28
 */
public interface ICartService {
    ResponseVo<CartVo> add(Integer uid, CartAddForm form);

    ResponseVo<CartVo> list(Integer uid);

    ResponseVo<CartVo> update(Integer uid, Integer productId, CartUpdateForm form);

    ResponseVo<CartVo> delete(Integer uid, Integer productId);

    ResponseVo<CartVo> selectAll(Integer uid);

    ResponseVo<CartVo> unSelectAll(Integer uid);

    ResponseVo<Integer> sum(Integer uid);
}
